package com.ycxy.school.express.service.impl;

import com.ycxy.school.express.mapper.CompanyMapper;
import com.ycxy.school.express.pojo.vo.CompanyListItemVO;
import com.ycxy.school.express.pojo.vo.RoleListItemVO;
import com.ycxy.school.express.service.ICompanyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author jayLuo
 * @Date 2023/1/11 17:12
 * @PackageName:com.ycxy.school.express.service.impl
 * @ClassName: CompanyServiceImpl
 * @Description: TODO
 * @Version 1.0
 */
@Slf4j
@Service
public class CompanyServiceImpl implements ICompanyService {

    @Autowired
    private CompanyMapper companyMapper;

    @Override
    public List<CompanyListItemVO> list() {
        log.debug("开始处理【查询公司列表】的业务，无参数");
        List<CompanyListItemVO> list = companyMapper.list();
        return list;
    }

}
